BIN=myprocess.exe
CC=gcc
SRC=$(wildcard *.c)
OBJ=$(SRC:.c=.o)
LFLAGS=-o
FLAGS=-c
RM=rm -rf

$(BIN):$(OBJ)
	$(CC) $(LFLAGS) $@ $^
%.o:%.c
	$(CC) $(FLAGS) $< -std=c99
.PHONY:clean
clean:
	$(RM) $(OBJ) $(BIN)


